#include <cstdlib> // exit()
#include <iostream>

#include "Server.hh"

/** Server side entry point
 ** av[1]: server port
 */


int  main(int ac, char *av[])
{
  if (ac != 2)
  {
    std::cerr << "Usage: " << av[0] << " port" << std::endl;
    std::exit(EXIT_FAILURE);
  }

  Server server(av[1]);
  server.run();
}
